package com.example.online.music.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.online.music.model.domain.Song;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SongMapper extends BaseMapper<Song> {

    /** 查询所有歌曲ID 集合 */
    List<Integer> selectAllSongIds();

    /**
     * @Description: 查询该用户所有推荐歌曲列表
     * @CreateTime:
     * @param: userId
     * @return: java.util.List<com.example.online.music.model.domain.Song>
     **/
    List<Song> selectAllRecommendSongList(Integer userId);

    /**
     * @Description: 获取所有歌曲热度排行列表
     * @Author: yang_yong
     * @CreateTime:
     * @return: java.util.List<com.example.online.music.model.domain.Song>
     **/
    List<Song> selectAllSongRankList();
}
